package homework1127;

public class WorkerTest {
    public static void main(String[] args) {
        Worker1 w1 = new Worker1();
        w1.setWork_name("Alice");
        Worker1 w2 = new Worker1();
        w2.setWork_name("Lain");
        w1.start();
        w2.start();


        Worker2 w3 = new Worker2();
        w3.setWork_name("Bob");
        Worker2 w4 = new Worker2();
        w4.setWork_name("C-A");

        Thread t1 = new Thread(w3);
        Thread t2 = new Thread(w4);
        t1.start();
        t2.start();
    }
}
